from django.conf.urls.defaults import *
from istock.views import helloworld
from istock.views import chart_data
from istock.views import index
from istock.views import fetch_stock_deal_info
from istock.views import deal_detail_chart_data_min
from istock.views import deal_buyandsell_data
from istock.views import deal_type_chart
from istock.views import deal_type_piechart
from istock.views import fetch_curr_stock_status_from_ws
from istock.views import fetch_curr_stock_kchart_from_ws
from istock.views import fetch_curr_stock_chart_from_ws
from istock.views import fetch_all_stock_info
from istock.views import test
from istock.views import register

from istock.views import login
from istock.views import logout


from istock import settings

from istock.views import cacltest1
from istock.views import cacltest2
from istock.views import cacltest3


from istock.script_views import test1
from istock.script_views import test2
from istock.script_views import test3
from istock.script_views import test4
from istock.script_views import test5
from istock.script_views import test6
from istock.script_views import test7
from istock.script_views import test8
from istock.script_views import test9
from istock.script_views import test10


# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    # Example:
    # (r'^istock/', include('istock.foo.urls')),
    (r'^istock/helloworld/$', helloworld),
    (r'^istock/data/$', chart_data),
    (r'^istock/index/$', index),
    (r'^istock/fetch_stock_deal_info/$', fetch_stock_deal_info),
    (r'^istock/deal_detail_chart_data_min/$', deal_detail_chart_data_min),
    (r'^istock/deal_buyandsell_data/$', deal_buyandsell_data),
    (r'^istock/deal_type_chart/$', deal_type_chart),
    (r'^istock/deal_type_piechart/$', deal_type_piechart),
    (r'^istock/fetch_curr_stock_status_from_ws/$', fetch_curr_stock_status_from_ws),
    (r'^istock/fetch_curr_stock_kchart_from_ws/$', fetch_curr_stock_kchart_from_ws),
    (r'^istock/fetch_curr_stock_chart_from_ws/$', fetch_curr_stock_chart_from_ws),
    (r'^istock/fetch_all_stock_info/$', fetch_all_stock_info),
    (r'^istock/test/$', test),
    (r'^istock/register/$', register),
    (r'^istock/login/$', login),
    (r'^istock/logout/$', logout),

    (r'^istock/c1$', cacltest1),
    (r'^istock/c2$', cacltest2),
    (r'^istock/c3$', cacltest3),

    (r'^istock/test1/$', test1),
    (r'^istock/test2/$', test2),
    (r'^istock/test3/$', test3),
    (r'^istock/test4/$', test4),
    (r'^istock/test5/$', test5),
    (r'^istock/test6/$', test6),
    (r'^istock/test7/$', test7),
    (r'^istock/test8/$', test8),
    (r'^istock/test9/$', test9),
    (r'^istock/test10/$', test10),
    
    # Uncomment the admin/doc line below to enable admin documentation:
    (r'^istock/admin/doc/', include('django.contrib.admindocs.urls')),
    
    # Uncomment the next line to enable the admin:
    (r'^istock/admin/', include(admin.site.urls)),
    (r'^istock/site_media/(?P<path>.*)$', 'django.views.static.serve',{'document_root': settings.STATIC_PATH, 'show_indexes':True}),
)
